package com.lib.module_base

import android.app.Application

/**
 * @ClassName: BaseInitModel
 * @Description:
 * @Author: You
 */
abstract class BaseInitModel {

    companion object {
        const val ANY_PROCESS = "any"
    }

    val process: String

    constructor() : this(ANY_PROCESS)

    constructor(process: String) {
        this.process = process
    }

    abstract fun init(application: Application)

    /**
     * 在任意进程可以初始化
     */
    fun isAnyProcess(): Boolean = process == ANY_PROCESS

}